package com.hlpedu.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class MyWebAppInitializer
           extends AbstractAnnotationConfigDispatcherServletInitializer {
    /*指定service/mapper层的配置类*/
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return  null;
    }
    /*指定springmvc的配置类*/
    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class<?>[]{SpringMvcConfig.class};
    }
  /*设置前端控制器DispatcherServlet的处理路径*/
    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
